package com.ygp.dtp.common.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description: Markdown伯乐
 * @motto: 代码源于生活，高于生活艺术
 * @author: zhouhengzhe
 * @date: 2022/8/8 11:10
 * @since 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MarkdownRequest {
    /**
     * msgType
     */
    private String msgType;

    /**
     * markdown
     */
    private Markdown markdown;

    private At at;

    @Data
    public static class Markdown {
        private String title;

        // for wechat
        private String content;

        // for ding
        private String text;
    }

    @Data
    public static class At {

        private List<String> atMobiles;

        private boolean isAtAll;
    }
}
